package cn.gdut.chengcai.admin.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.gdut.chengcai.base.UploadDownloadUtil;

@Controller
@RequestMapping("/admin/io")
public class Admin_IoController {

	@RequestMapping("/downloadAction")
	public void downloadAction(String filename, HttpServletRequest request, HttpServletResponse response) {
		UploadDownloadUtil.downloadAction(filename, request, response);
	}

	@RequestMapping("/uploadPreviewAction")
	public void uploadPreviewAction(String filename, HttpServletRequest request, HttpServletResponse response) {
		UploadDownloadUtil.uploadPreviewAction(filename, request, response);
	}
}
